package com.dongdongshop.service;

import com.dongdongshop.pojo.TbSpecificationOption;
import com.dongdongshop.pojo.TbTypeTemplate;
import com.dongdongshop.util.PageBean;

import java.util.List;

public interface TemplatesService {
    PageBean<TbTypeTemplate> getinfo(String sname,Integer number,Integer pageSize);

    Integer addinfo(TbTypeTemplate t);

    Integer deleteAll(Long[] ids);

    TbTypeTemplate selectById(Long id);

    Integer updateinfo(TbTypeTemplate t);

    List<TbTypeTemplate> getAll();

    TbTypeTemplate toGet2(Long typeId);

    List<TbSpecificationOption> listOptionsBySpecId(Long id);
}
